/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.startup.musicstore.app.factory;

import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.OrderItem;

/**
 *
 * @author Administrator
 */
public class OrderItemFactory {
    
    public static OrderItem getOrderItem(Album album, int quantity) {
        OrderItem oI = new OrderItem();
        oI.setAlbum(album);
        oI.setQuantity(quantity);
        return oI;
    }
    
}
